// import request from '@/utils/request'
// import request from '@/app/appcommon/utils/request-spring'
import request from '@/app/appcommon/utils/request-spring-token'
// 查询美元理财列表
export function listUsd_rmb(query) {
  return request({
    url: '/usd_rmb/list',
    method: 'get',
    params: query
  })
}

// 查询美元理财详细
export function getUsd_rmb(transactionId) {
  return request({
    url: '/usd_rmb/' + transactionId,
    method: 'get'
  })
}

// 新增美元理财
export function addUsd_rmb(data) {
  return request({
    url: '/usd_rmb',
    method: 'post',
    data: data
  })
}

// 修改美元理财
export function updateUsd_rmb(data) {
  return request({
    url: '/usd_rmb',
    method: 'put',
    data: data
  })
}

// 删除美元理财
export function delUsd_rmb(transactionId) {
  return request({
    url: '/usd_rmb/' + transactionId,
    method: 'delete'
  })
}
